/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun.cloudpayment2.controller;

import com.sun.cloudapicommon.entity.SysUser;
import com.sun.cloudpayment2.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;

    @RequestMapping("/list")
    public List<SysUser> findAll(){
        List<SysUser> userList = sysUserService.findAll();
        System.out.println("8002...........................");
        return userList;
    }
}
